<template>
    <h6>微博标题：{{ title }} <el-button type="danger" @click="bigFont">字体放大</el-button></h6>
</template>
<script setup>
import { defineProps, defineEmits } from "vue";
// let prop , let emit : 收取方法的返回值，是为了在 js 中使用
let prop = defineProps(['title'])
let emit = defineEmits(['bigFont'])
function bigFont() {
    emit('bigFont')
    console.log('prop', prop.title);
}
</script>
<style lang='scss' scoped></style>